package com.wenyl.threads.cas;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicStampedReference;

/**
 * @author Swimming Dragon
 * @description: TODO
 * @date 2024年11月01日 16:15
 */
public class CasInteger {
    private final AtomicInteger inc = new AtomicInteger();
    public void inc(){
        inc.getAndIncrement();
    }
    public int getInc(){
        return inc.get();
    }
}
